package com.qf.demo1.controller;

import com.qf.demo1.pojos.Address;
import com.qf.demo1.pojos.User;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/test")
public class TestController {

    @PostMapping("/res1")
    public String test(User user, @RequestBody Address addr,@RequestHeader("token") String token) throws InterruptedException {

        Thread.sleep(500);

        System.out.println(user);
        System.out.println(addr);
        System.out.println(token);

        return "success";
    }
}
